package com.xw.functionService.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.xw.functionService.mapper.FunctionModularMapper;
import com.xw.functionService.model.FunctionModular;
import com.xw.functionService.service.FunctionModularService;
/**
 * 功能模块接口实现类
 * @author xiaoshengda
 *
 * @date 创建时间：2018年4月5日 下午12:07:49
 */
@Service
public class FunctionModularServiceImpl implements FunctionModularService {
    @Autowired
    private FunctionModularMapper functionModularMapper;
	@Override
	@Transactional(propagation = Propagation.REQUIRED)
	public void del(Long functionModularId) {
    this.functionModularMapper.del(functionModularId);
	}

	@Override
	@Transactional(propagation = Propagation.REQUIRED)
	public void insert(FunctionModular functionModular) {
     this.functionModularMapper.insert(functionModular);
	}

	@Override
	public FunctionModular loadById(Long functionModularId) {
		return this.functionModularMapper.loadById(functionModularId);
	}

	@Override
	@Transactional(propagation = Propagation.REQUIRED)
	public void update(FunctionModular functionModular) {
     this.functionModularMapper.update(functionModular);
	}

}
